<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
var source = new EventSource('sse/get_data');
source.onmessage = function (event) {
    console.info(event.data);
    document.getElementById('result').innerText = event.data
};
</script>
</head>
<body>
<div>数据推送</div>
<div id="result"></div>
</body>
</html>